package collection_.list;

import java.util.LinkedList;
import java.util.TreeMap;

/**
 * @author 15594
 */
public class LinkedList_ {
    public static void main(String[] args) {
        LinkedList linkedList = new LinkedList();
        for (int i = 0; i <6 ; i++) {
            linkedList.add(i);
        }
        Object pop = linkedList.pop();
        System.out.println(pop);
        System.out.println(linkedList.pop());

        linkedList.push(88);
        linkedList.push(66);

        linkedList.add(99);

        linkedList.pollLast();

        System.out.println("剩下的：");
        for (Object o : linkedList) {

            System.out.println(o);
        }

    }

}
